<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>WorkFlow</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">    
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<style type="text/css">
i{
	cursor:pointer;
}
i:hover{
	color:blue;
	text-decoration: underline;
}
</style>
<script type="text/javascript">
function openStart(id) {
	window.open("workFlow/request.action?graphId=" + id);
};
function openWait(id) {
	window.open("workFlow/request.action?workId=" + id);
};
</script>
</head>
  <body>
  	<div style="margin: 20px;">
  		<div>ID：${userId}</div>
  		<div>姓名：${userName}</div>
  	</div>
  	<div style="margin: 20px;">
  		<i onclick="window.open('workFlow/designer.action');">流程设计器</i>
  	</div>
  	<div style="margin: 20px;">
  		<div>我的流程</div>
  		<div style="margin-left: 50px;">
  			<c:forEach items="${start}" var="st">
				<div>
					<i onclick="openStart(${st.graphId});">${st.name}</i>
				</div>
			</c:forEach>
  		</div>
  	</div>
  	<div style="margin: 20px;">
  		<div>待我处理流程</div>
  		<div style="margin-left: 50px;">
  			<c:forEach items="${wait}" var="wa">
				<div>
					<i onclick="openWait(${wa.workId})">【${wa.userName}】${wa.name}</i>
				</div>
			</c:forEach>
  		</div>
  	</div>
  </body>
</html>
